package cargas;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
 
public class HTTP {
	
   public static void main(String[] args)
     throws MalformedURLException, IOException {
      URL url = new URL("http://lefunes.wordpress.com");
      URLConnection con = url.openConnection();
      BufferedReader in = new BufferedReader(
         new InputStreamReader(con.getInputStream()));
      String linea;
      while ((linea = in.readLine()) != null) {
         System.out.println(linea);
      }
   }
}